<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;

class ProjectMeetingInvitationEmailRecord extends Model
{
    use HasDateTimeFormatter;
    const CREATED_AT = 'create_time';
    const UPDATED_AT = 'update_time';
    public $timestamps = true;

    protected $table = 'eb_project_meeting_invitation_email_record';

    /**
     * 只查没有被删除的作用域
     *
     * @param  \Illuminate\Database\Eloquent\Builder  $query
     * @return \Illuminate\Database\Eloquent\Builder
     */
    public function scopeDeleteTime($query)
    {
        return $query->whereNull('delete_time');
    }
}
